package com.zjitc.model;

import java.util.List;

/**
 * @author Administrator
 */
public class Page<T> {

    private Integer pageIndex;
    private Integer pageTotal;
    private Integer start;
    private Integer end;
    private List<T> list;

    public Page() {
    }

    public Page(Integer pageIndex, Integer pageTotal, Integer start, Integer end, List<T> list) {
        this.pageIndex = pageIndex;
        this.pageTotal = pageTotal;
        this.start = start;
        this.end = end;
        this.list = list;
    }

    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getPageTotal() {
        return pageTotal;
    }

    public void setPageTotal(Integer pageTotal) {
        this.pageTotal = pageTotal;
    }

    public Integer getStart() {
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Integer getEnd() {
        return end;
    }

    public void setEnd(Integer end) {
        this.end = end;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "Page{" +
                "pageIndex=" + pageIndex +
                ", pageTotal=" + pageTotal +
                ", start=" + start +
                ", end=" + end +
                ", list=" + list +
                '}';
    }
}
